package com.wechet.common;

import lombok.Getter;

import javax.persistence.criteria.CriteriaBuilder;

/**
 * Created by sc on 2017/9/21.
 */

@Getter
public enum OrderStatus implements CodeEnum {
    NEW(0,"新订单"),
    FINISHED(1,"完成"),
    CANCEL(2,"取消"),
    ORDER_NOT_EXIST(3,"订单不存在"),
    ORDERDETAIL_NOT_EXIST(4,"订单详情不存在"),
    ORDER_STATUS_ERROR(5,"订单状态异常"),
    ORDER_IS_EMPTY(6,"订单没有商品"),
    UPDATE_FAILED(7,"更新订单异常"),
    PADYSTATUS_ERROR(8,"支付状态异常");
    private Integer code;
    private String msg;

    OrderStatus(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
